Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

feat(android): Added playback with the schema "SCHEME_CONTENT" on Android #2790

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trueflywood
Copy link

Added playback with the schema "SCHEME_CONTENT" on Android

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Uri sound = Uri
.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + context.getPackageName() + "/raw/" + soundname);
Log.d(LOG_TAG, sound.toString());
mBuilder.setSound(sound);
} else if (soundname.contains(ContentResolver.SCHEME_CONTENT + ":")){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soundname can be null in this case, risk of NPE, needs refactor I think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants